package com;



import com.lagou.InitZkNode;
import com.lagou.TestDruid;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.sql.SQLException;

import static com.lagou.TestDruid.initDataSource;

@SpringBootApplication
public class ServerBootstrap {

    public static void main(String[] args) throws SQLException, InterruptedException {

        SpringApplication.run(ServerBootstrap.class, args);


        InitZkNode.initNode();
        TestDruid.initDataSource(InitZkNode.getZkClient());
        TestDruid.doSql();
    }



}
